% get_GLP.m获取guass点

global weight


if NumGLP == 3
    lambda(1) = -1;
    lambda(2) = 0;
    lambda(3) = 1; 
    
    weight(1) = 1/3;
    weight(2) = 4/3;
    weight(3) = 1/3;

elseif NumGLP == 5
    lambda(1) = -0.9061798459386639927976269;
    lambda(2) = -0.5384693101056830910363144;
    lambda(3) = 0;
    lambda(4) = 0.5384693101056830910363144;
    lambda(5) = 0.9061798459386639927976269;
    
    weight(1) = 0.2369268850561890875142640;
    weight(2) = 0.4786286704993664680412915;
    weight(3) = 0.5688888888888888888888889;
    weight(4) = 0.4786286704993664680412915;
    weight(5) = 0.2369268850561890875142640;
end